package com.lg.teacherCrud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("teacher")  // 指定表名
public class Teacher {
    @TableId(value = "id", type = IdType.AUTO)  // 主键自增
    private Integer id;
    private String name;
    private String course;
    private Date birthday;
}